<?php
namespace Admin\Controller;
use Think\Controller;
use Common\Controller\BaseController;

/**
 * 保障对象统计报表管理
 * Class ReportRefuseController
 * @package Admin\Controller
 */
class ReportRefuseController extends BaseController {
    /**
     * 系统管理 -> 系统管理 -> 保障对象统计报表管理 -> listview
     */
    public function index(){
        //获取搜索条件
        $filter = $this->fn_GenerateFilter();
        $where = $this->fn_GenerateWhereClause();
        $order = $this->fn_GenerateOrderBy();

        //分页信息
        $pageNum = intval(I("post.page"));
        $pageNum = $pageNum==0?1:$pageNum;
        $page = $this->fn_GetPageInfo($where, $pageNum);
        $this->assign("page", $page);

        //搜索出小区信息
        $limit = ($page['from']-1).",".$page['num'];
        $list = M("house")->where($where)->order($order)->limit($limit)->select();
        for($i=0; $i<count($list); $i++){
            $list[$i]["offset"] = $page['from']-1+$i;
        }
        $this->assign("list", $list);


        //设置搜索条件
        $this->assign("filter", $filter);

        $this->display();
    }



    /**
     * 保障对象统计报表管理 -> formview
     */
    public function detail(){


        M("lzf")->group("area_id")->select();

        $this->display();
    }


}